package com.haircut.project.dao.salary;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.haircut.project.model.salary.UserSalary;
import com.haircut.project.vo.salary.ApiSalaryReqVo;
import com.haircut.project.vo.salary.ApiSalaryResVo;
import com.haircut.project.vo.salary.SalaryReqVo;
import com.haircut.project.vo.salary.SalaryResVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserSalaryMapper  extends BaseMapper<UserSalary> {
    /**
     * 后台查询
     * @param reqVo
     * @return
     */
    Page<SalaryResVo> findManagerPage(IPage<?> pageReq,@Param("reqVo") SalaryReqVo reqVo);

    /**
     * api查询工资
     * @param reqVo
     * @return
     */
    Page<ApiSalaryResVo> findApiPage(IPage<?> pageReq,@Param("reqVo")ApiSalaryReqVo reqVo);
}
